{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "01726898",
   "metadata": {},
   "outputs": [],
   "source": [
    "astr=\"\"\"\n",
    "GlobaleMedia\t10010028\t15064\n",
    "MeloDonG\t10010027\t15063\n",
    "Mobavenue\t10010033\t15069\n",
    "Keen Digital\t10010025\t15061\n",
    "TimesInternet\t10010038\t15074\n",
    "Macan\t10010036\t15072\n",
    "Appmontize _NEW\t10010031\t15067\n",
    "Tyrads\t10010057\t15093\n",
    "Xoom\t10010059\t15095\n",
    "Youappi\t10010058\t15094\n",
    "Mobio\t10010045\t15081\n",
    "MoMagic\t10010056\t15092\n",
    "\"\"\".strip()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "id": "eaa7fb73",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "{'affise_GlobaleMedia': {'so_header': 10010028, 'so_line': 15064}, 'affise_MeloDonG': {'so_header': 10010027, 'so_line': 15063}, 'affise_Mobavenue': {'so_header': 10010033, 'so_line': 15069}, 'affise_Keen Digital': {'so_header': 10010025, 'so_line': 15061}, 'affise_TimesInternet': {'so_header': 10010038, 'so_line': 15074}, 'affise_Macan': {'so_header': 10010036, 'so_line': 15072}, 'affise_Appmontize _NEW': {'so_header': 10010031, 'so_line': 15067}, 'affise_Tyrads': {'so_header': 10010057, 'so_line': 15093}, 'affise_Xoom': {'so_header': 10010059, 'so_line': 15095}, 'affise_Youappi': {'so_header': 10010058, 'so_line': 15094}, 'affise_Mobio': {'so_header': 10010045, 'so_line': 15081}, 'affise_MoMagic': {'so_header': 10010056, 'so_line': 15092}}\n"
     ]
    }
   ],
   "source": [
    "a_dict={}\n",
    "for line in astr.split('\\n'):\n",
    "    dsp_name,so_header,so_line=line.split('\\t')\n",
    "    a_dict['affise_'+dsp_name]={\n",
    "                         'so_header': int(so_header),\n",
    "                         'so_line': int(so_line)}\n",
    "print(a_dict)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "02dac3b6",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "python",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.9.7"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
